package com.tcc.qa.test.util;

/**
 * 
 */


import org.apache.xpath.operations.String;
import org.openqa.selenium.WebDriver;
import org.testng.Assert;


/**
 * @company CampusCruiser
 * @author Emily_Wang
 * @date 2012-6-4
 */
public class AssertCheck {
	public static void assertAlert(WebDriver driver,String expectedText){
		Assert.assertEquals(SwitchTo.switchToAlert(driver).getText(), expectedText);
	}
	public static void assertMsg(WebDriver driver, String msg){
		Assert.assertEquals(MsgFinder.getMsgDiv(driver).getText(), msg);
	}
	public static void assertSelect(WebDriver driver, String id, int index,String expectedText){
		Assert.assertEquals(SelectFinder.getSelectOption(driver, id, index).getText(), expectedText);
	}
	public static void assertTitle(WebDriver driver, String expectedText){

	}
	
}
